package com.example.bean;

import java.util.Date;

public class Messages {
    private Integer id;

    private String author;

    private String content;

    private Date create_time;

    public Messages() {
    }//无参构造方法，用于创建一个没有初始值的 Messages 对象。

    public Messages(String author, String content) {
        this.author = author;
        this.content = content;
    }//带有两个参数的构造方法，用于创建一个 Messages 对象并初始化作者和内容。

    //用于获取和设置 id 成员变量的值。
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }
}
